<?php

namespace common\models;

use Yii;
use common\models\base\ArchiveAndMaterial as base;

/**
 * This is the model class for table "rel_archive_and_material".
 *
 * @property integer $archive_id
 * @property integer $material_id
 */
class ArchiveAndMaterial extends base
{
	/**
	 * @inheritdoc
	 */
	public static function tableName()
	{
		return 'rel_archive_and_material';
	}

	/**
	 * @inheritdoc
	 */
	public function rules()
	{
		return [
			[['archive_id', 'material_id'], 'required'],
			[['archive_id', 'material_id'], 'integer'],
		];
	}

	/**
	 * @inheritdoc
	 */
	public function attributeLabels()
	{
		return [
			'archive_id' => 'Archive ID',
			'material_id' => 'Material ID',
		];
	}
}
